package com.lcj.demo.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 部门实体类
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@ApiModel(value = "部门类")
public class Department {
    @ApiModelProperty(value = "id")
    @Id @GeneratedValue(strategy = GenerationType.IDENTITY)
    Long id;
    @ApiModelProperty(value = "名字")
    String name;
}
